package com.demo.boss.models.request;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class OperatorLoginRequest {
    @NotNull(message = "登录名不能空")
    @Size(min = 5, max = 20, message = "登录名在{min}-{max}个字符")
    private String loginName;
    @NotNull(message = "登录密码不能空")
    @Size(min = 32, max = 32, message = "登录密码格式错误")
    private String loginPwd;
}
